package com.cjj.controller;

import com.cjj.service.ClassifyService;
import com.cjj.vo.ClassifyVo;
import com.cjj.vo.ConfirmationClassificationVo;
import com.github.pagehelper.PageInfo;
import com.guigu.pojo.*;
import com.guigu.viwe.PageVo;
import com.lc.vo.ExaminView;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/Classify")
public class ClassifyController {

    @Resource
    private ClassifyService classifyService;

    @RequestMapping("/queryClassify")
    public PageInfo<ClassifyVo> queryClassify(@RequestBody PageVo<ClassifyVo> pageVo){
        return this.classifyService.queryClassify(pageVo);
    }
//查询分类详情
    @RequestMapping("/queryClassification")
    public ConfirmationClassificationVo queryClassification(String fileNumber){
        return this.classifyService.queryClassification(fileNumber);
    }

    //查询所有分类类型
    @RequestMapping("/queryDisease")
    public List<TDiseaseLibrary> queryDisease(){
        return this.classifyService.queryDisease();
    }

    //查询所有医生
    @RequestMapping("/querydoctor")
    public List<THealthmgr> querydoctor(){
        return this.classifyService.querydoctor();
    }

    @RequestMapping("/notarizeClassify")
    public int notarizeClassify(@RequestBody TInterposeClassify tInterposeClassify){

        return this.classifyService.notarizeClassify(tInterposeClassify);
    }

    @RequestMapping("/addTInterposeScheme")
    public int addTInterposeScheme(@RequestBody TInterposeScheme tInterposeScheme){
        return this.classifyService.addTInterposeScheme(tInterposeScheme);
    }

    @RequestMapping("/queryImage")
    public List<TExamination> queryImage(String id){
    return this.classifyService.queryImage(id);
    }

}
